<?php
/**
 * 文件说明: 辅助脚本的配置文件，包括设置数据库的连接参数，redis的连接参数
 * 日志文件地址等.
 * 时间: 2016-10-26
 */

date_default_timezone_set('Asia/Shanghai');
ini_set('error_reporting', 'E_ALL ^ E_NOTICE');
set_time_limit(0);
class Config {
	/* 数据库连接参数 */	
    /* 正式服务器
	public static $mysql_config = array(
			'host' => 'rm-wz981l0dt392k882a.mysql.rds.aliyuncs.com',
			'port' => 3306,
			'username' => 'game_csmj_root',
			'password' => 'n@gf9dz#1YP*o#jTZ5f2KiS5r^omT!!P',
			'dbname' => 'cs_majdb',
			'charset' => 'utf8mb4',
	);
    */
    public static $mysql_config = array(
			'host' => '127.0.0.1',
			'port' => 3306,
			'username' => 'root',
			'password' => '123456',
			'dbname' => 'cs_majdb',
			'charset' => 'utf8mb4',
	); 
    
	/* Data redis 连接参数 */
    /*正式服务器
	public static $redis_data_config = array(
        array('host' => 'r-wz9677b594374d94.redis.rds.aliyuncs.com', 'port' => 6379, 'pass' => 'ZR8nKBLGbRGZPqcp8k9zFHDN')

    );
    */
    public static $redis_data_config = array(
        array('host' => '127.0.0.1', 'port' => 25000, 'pass' => '123456abc')
    
    );
  
    public static $mod = 1;
    public static $logger = null;
	public static $loggerError = null;
	public static $loggerDebug = null;
	

	//上报数据服务参数
	public static $data_report = array(
	    'ip' => '120.77.51.159',
	    'port'=> '5050' 
	    );
	
	//上报数据请求token登录参数
    public static $info_report = array(
	    'cid'=>'eba0c31b24dd1c8a709f1e777475101a',
		'user'=>'loguser_im01',
		'pass'=>'D71594f4ed_',
		'reportTokenTime'=>43200
	    );
}

Config::$logger =  new Logger("info");
Config::$loggerError =  new Logger("error");
Config::$loggerDebug =  new Logger("debug");

?>	
